/*
 * @Author: moeWang
 * @Date: 2022-03-03 10:10:20
 * @LastEditTime: 2022-03-11 10:52:07
 * @LastEditors: moeWang
 * @Description:
 * @FilePath: \nest-web\src\logical\auth\models\userInfo.model.ts
 */

import { ApiPropertyOptional } from '@nestjs/swagger';

export class UserInfoModel {
  @ApiPropertyOptional({ description: 'id' })
  accountId: string;

  @ApiPropertyOptional({ description: '姓名' })
  name: string;

  @ApiPropertyOptional({ description: '头像' })
  avatar: string;

  @ApiPropertyOptional({ description: '简介' })
  introduction: string;

  @ApiPropertyOptional({ description: '角色名数组' })
  roles: Array<string>;

  @ApiPropertyOptional({ description: '用户所属机构ID' })
  orgId: string;

  @ApiPropertyOptional({ description: '用户所属机构名称' })
  orgName: string;

  @ApiPropertyOptional({ description: '级别' })
  level: string;

  @ApiPropertyOptional({ description: '办公电话' })
  officeTele: string;

  @ApiPropertyOptional({ description: '用户类别 0：大屏用户，1：后台用户' })
  userType: string;

  @ApiPropertyOptional({ description: '机构级别' })
  orgType: string;

  @ApiPropertyOptional({ description: '一级组织机构Id' })
  oneOrgId: string;

  @ApiPropertyOptional({ description: '一级组织机构名称' })
  oneOrgName: string;

  @ApiPropertyOptional({ description: '二级组织机构Id' })
  twoOrgId: string;

  @ApiPropertyOptional({ description: '二级组织机构名称' })
  twoOrgName: string;

  @ApiPropertyOptional({ description: '三级组织机构Id' })
  threeOrgId: string;

  @ApiPropertyOptional({ description: '三级组织机构名称' })
  threeOrgName: string;
}
